package cn.icare.cms.model.ro;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel(value = "AddCouponRO",description = "新增优惠券参数对象类")
public class AddCouponRO {
    @ApiModelProperty(value = "优惠券名称")
    private String name;
    @ApiModelProperty(value = "类型：1-新人券 2.其它券")
    private Integer type;
    @ApiModelProperty(value = "金额")
    private Integer num;
    @ApiModelProperty(value = "最低限制额")
    private Integer neednum;

    @ApiModelProperty(value = "可用开始时间", required = true)
    @JsonFormat(shape=JsonFormat.Shape.STRING, timezone = "GMT+8",pattern="yyyy-MM-dd HH:mm:ss")
    private Date starttime;

    @ApiModelProperty(value = "可用结束时间", required = true)
    @JsonFormat(shape=JsonFormat.Shape.STRING,timezone = "GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "优惠券总数量")
    private Integer total;

    @ApiModelProperty(value = "优惠券已被领取数量")
    private Integer gettotal;

    @ApiModelProperty(value = "状态1-正常0-失效")
    private Integer status;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getNeednum() {
        return neednum;
    }

    public void setNeednum(Integer neednum) {
        this.neednum = neednum;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getGettotal() {
        return gettotal;
    }

    public void setGettotal(Integer gettotal) {
        this.gettotal = gettotal;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
